<template>
    <div>
        <div class="topbar bg-black py-2 px-3 d-flex ai-center">
            <img src="../assets/img/touxiang.jpg" height="30px">
    <div class="px-3 flex-1">
          <div class="text-white">王者荣耀</div>
            <div class="text-grey-1 fs-xss">团队成就更多</div>
    </div>       
            <button type="button" class="btn bg-primary" >立即下载</button>
        </div>

        <div class="bg-primary pt-3 pb-2">
           <div class="nav nav-inverse pb-1 jc-around">
               <div class="nav-item active">
                   <router-link class="nav-link" tag="div" to="/home">首页</router-link>
               </div>
               <div class="nav-item">
                   <router-link class="nav-link" tag="div" to="/waycenter">攻略中心</router-link>
               </div>
               <div class="nav-item">
                   <router-link class="nav-link" tag="div" to="/match">赛事中心</router-link>
               </div>
               <div class="nav-item">
                   <router-link class="nav-link" tag="div" to="/IPgame">IP新游</router-link>
               </div>
           </div>
        </div>
        <router-view></router-view>
    </div>
</template>

<script>
import Home from './Home.vue'
export default {
    name: 'VueMain',
    components:{
        Home
    }

};
</script>

<style lang = 'scss' scoped>
.topbar{
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}
</style>